<?php
/**
 * Created by PhpStorm.
 * User: User
 * Date: 2017/10/18
 * Time: 8:30
 */class Circle
{
    private  $r;
    public  function __construct($r)
    {$this->r=$r;
    }
    public  function __clone()
    {

        $this->r=10;
    }
    public  function __toString()
    {
     return 'circle.r='.$this->r;
    }
     public function  __call($ages, $methodnames)
     {
     die("你调用的方法".$methodnames."不存在");
     }


}
$c=new Circle(3);
echo $c;
$e=$c->getArea2();
//$d=$c;
 //$cc=clone  $c;
// var_dump($c);
//var_dump($d);
//var_dump($cc);